﻿<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:xs="http://www.w3.org/2001/XMLSchema"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:nwisdocs="http://wales.nhs.uk/nwis/docs"
	exclude-result-prefixes="xs xsi">

  <xsl:template name="progress-in-hospital">
    <xsl:choose>
      <xsl:when test="nwisdocs:DocumentBody/nwisdocs:ProgressInHospital != ''">
        <div class="boxed-section" id="{local-name()}">
          <h2> Progress in hospital and outcome</h2>
          <div class="inline-content">
            <p>
              <xsl:value-of select="nwisdocs:DocumentBody/nwisdocs:ProgressInHospital/nwisdocs:Narrative"/>
            </p>
          </div>
        </div>
      </xsl:when>
      <xsl:otherwise></xsl:otherwise>
    </xsl:choose>

    
  </xsl:template>

</xsl:stylesheet>
